package com.foreknow.practice.exam;

import java.util.Scanner;

public class Test {
    public  void add(){
        CompanyImpl manager = new CompanyImpl();
        Scanner input = new Scanner(System.in);

        do {
            System.out.println("请输入一个月份");
            int x = input.nextInt();
            int n = 1;
            while (n<=x){
                manager.salary();
                System.out.println("======第"+n+"个月======\n");
                n++;
            }
        }while (true);
    }
    public  void add2(){
        CompanyImpl manager = new CompanyImpl();
        Scanner input = new Scanner(System.in);

        do {
            System.out.println("请输入一个月份");
            int x = input.nextInt();
            int n = 1;
            while (n<=x){
                manager.salary();
                System.out.println("======第"+n+"个月======\n");
                n++;
            }
        }while (true);
    }
    public  void add3(){
        CompanyImpl manager = new CompanyImpl();
        Scanner input = new Scanner(System.in);

        do {
            System.out.println("请输入一个月份");
            int x = input.nextInt();
            int n = 1;
            while (n<=x){
                manager.salary();
                System.out.println("======第"+n+"个月======\n");
                n++;
            }
        }while (true);
    }
    public  void add4(){
        CompanyImpl manager = new CompanyImpl();
        Scanner input = new Scanner(System.in);

        do {
            System.out.println("请输入一个月份");
            int x = input.nextInt();
            int n = 1;
            while (n<=x){
                manager.salary();
                System.out.println("======第"+n+"个月======\n");
                n++;
            }
        }while (true);
    }
    public static void main(String[] args) {
        Test test = new Test();
        test.add();
        test.add2();
        test.add3();
        test.add4();
        


    }
}
